#include "threadhand.h"

#include <QDebug>

ThreadHand::ThreadHand(QThread *p):
    hand(p)
{
}
ThreadHand::~ThreadHand()
{
    hand->quit();
    hand->wait();
    hand->deleteLater();
    qDebug() << "Thread quit and delete!";
}
QThread* ThreadHand::value() const
{
    return hand;
}
void ThreadHand::ObjMoveIn(QObject *obj)
{
    obj->moveToThread(hand);
}
